package controlePrincipal;

import evento.EventoPrincipal;
import view.PanelPrincipal;
import view.PrincipalJanela;

public class PrincipalBO {
	
	private static PrincipalBO instance = null;
	private final static PrincipalJanela jPrincipal = new PrincipalJanela();

	private PrincipalBO() {
		
	}
	
	public static PrincipalBO getInstance(){
		if(instance == null){
			instance = new PrincipalBO();
			jPrincipal.add(new PanelPrincipal());
			EventoPrincipal.setEvento(jPrincipal);
			jPrincipal.setVisible(true);
		}
		return instance;
	}

	public PrincipalJanela getJPrincipal() {
		
		return jPrincipal;
	}

}
